/* =========================================================
   GP Эксперт — landing page
   Tokens
   Color:  --bg #090D16  --bg-alt #0B1220  --surface #121A2C
           --surface-2 #17213A  --border rgba(255,255,255,.08)
           --blue #3B9EFF  --cyan #22D3EE  --purple #8B7CF6
           --green #4ADE80  --red #F87171
           --text #F1F5F9  --text-muted #93A1B8  --text-dim #5A6981
   Type:   Display  "Space Grotesk"  (headlines)
           Body     "Inter"          (paragraphs, UI)
           Mono     "JetBrains Mono" (numbers / currency)
   ========================================================= */

:root{
  --bg:#090D16;
  --bg-alt:#0B1220;
  --surface:#121A2C;
  --surface-2:#17213A;
  --border:rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.14);

  --blue:#3B9EFF;
  --cyan:#22D3EE;
  --purple:#8B7CF6;
  --green:#4ADE80;
  --red:#F87171;

  --text:#F1F5F9;
  --text-muted:#93A1B8;
  --text-dim:#5A6981;

  --grad-primary:linear-gradient(100deg,#3B82F6 0%,#22D3EE 100%);

  --font-display:'Space Grotesk',system-ui,sans-serif;
  --font-body:'Inter',system-ui,sans-serif;
  --font-mono:'JetBrains Mono',ui-monospace,monospace;

  --radius-lg:22px;
  --radius-md:16px;
  --radius-sm:10px;

  --shadow-card:0 20px 50px -20px rgba(0,0,0,.6);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(59,158,255,.16), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(139,124,246,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

h1,h2,h3{ font-family:var(--font-display); margin:0; letter-spacing:-.01em; }

p{ margin:0; }

.wrap{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:0 24px;
}

img{ display:block; max-width:100%; }

/* ---------- buttons / links ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 28px;
  border-radius:999px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:15px;
  text-decoration:none;
  cursor:pointer;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space:nowrap;
}
.btn:focus-visible{ outline:2px solid var(--cyan); outline-offset:3px; }

.btn-primary{
  background:var(--grad-primary);
  color:#04101F;
  box-shadow:0 12px 30px -10px rgba(59,158,255,.55);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 36px -10px rgba(59,158,255,.7); }

.btn-large{ padding:16px 34px; font-size:16px; }

.btn-ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--border-strong);
}
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue); }

.link-btn{
  background:none;
  border:none;
  color:var(--text-muted);
  font-family:var(--font-body);
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  padding:6px 4px;
  text-decoration:none;
  transition:color .15s ease;
}
.link-btn:hover{ color:var(--cyan); }
.link-btn:focus-visible{ outline:2px solid var(--cyan); outline-offset:3px; border-radius:4px; }

/* ---------- header ---------- */
.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(9,13,22,.72);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:14px;
  padding-bottom:14px;
}
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{
  width:34px;
  height:34px;
  border-radius:9px;
  object-fit:contain;
}
.brand-mark--sm{ width:28px; height:28px; }
.brand-name{ font-family:var(--font-display); font-weight:600; font-size:17px; letter-spacing:-.01em; }

.header-row .link-btn{ display:none; }
@media (min-width:720px){ .header-row .link-btn{ display:inline-block; } }

/* ---------- hero ---------- */
.hero{ padding:64px 0 40px; }
.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:56px;
  align-items:center;
}
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; gap:48px; }
}

.eyebrow{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--cyan);
  background:rgba(34,211,238,.08);
  border:1px solid rgba(34,211,238,.24);
  padding:6px 12px;
  border-radius:999px;
  margin-bottom:22px;
}

.hero-copy h1{
  font-size:clamp(34px,5vw,52px);
  line-height:1.06;
  font-weight:700;
  margin-bottom:20px;
}

.hero-sub{
  color:var(--text-muted);
  font-size:16.5px;
  max-width:52ch;
  margin-bottom:32px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:30px;
}

.hero-trust{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:10px 22px;
  font-size:13.5px;
  color:var(--text-dim);
}
.hero-trust li{ position:relative; padding-left:16px; }
.hero-trust li::before{
  content:'';
  position:absolute;
  left:0; top:6px;
  width:7px; height:7px;
  border-radius:50%;
  background:var(--green);
}

/* ---------- hero visual (signature mock cards) ---------- */
.hero-visual{
  position:relative;
  min-height:420px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.glow{
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 55% 45%, rgba(59,158,255,.30), transparent 62%);
  filter:blur(10px);
  pointer-events:none;
}

.mock-card{
  position:absolute;
  width:280px;
  background:linear-gradient(180deg,var(--surface-2),var(--surface));
  border:1px solid var(--border-strong);
  border-radius:var(--radius-lg);
  padding:22px 22px 24px;
  box-shadow:var(--shadow-card);
}

.mock-card--back{
  top:-8px;
  right:14px;
  transform:rotate(4deg);
  opacity:.7;
  filter:saturate(.9);
}
.mock-card--front{
  bottom:-10px;
  left:6px;
  transform:rotate(-3deg);
  animation:float 6s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform:rotate(-3deg) translateY(0); }
  50%{ transform:rotate(-3deg) translateY(-10px); }
}

.mock-card-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }

.mock-label{
  display:inline-block;
  font-family:var(--font-mono);
  font-size:10.5px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--blue);
  background:rgba(59,158,255,.12);
  border:1px solid rgba(59,158,255,.28);
  border-radius:999px;
  padding:4px 10px;
  margin-bottom:14px;
}
.mock-label--target{ color:var(--purple); background:rgba(139,124,246,.14); border-color:rgba(139,124,246,.3); margin-bottom:0; }

.mock-pill{
  font-family:var(--font-mono);
  font-size:11px;
  color:var(--cyan);
}

.mock-title{ display:block; color:var(--text-muted); font-size:13px; margin-bottom:6px; }

.mock-value{
  display:block;
  font-family:var(--font-mono);
  font-weight:600;
  font-size:26px;
  color:var(--text);
  margin-bottom:16px;
}
.mock-value small{ font-size:13px; color:var(--text-dim); font-weight:500; }
.mock-value--blue{ color:#8EC8FF; }
.mock-value--purple{ color:#C4B8FF; }

.mock-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  border-top:1px solid var(--border);
  padding-top:14px;
}
.mock-row-label{ display:block; font-size:11.5px; color:var(--text-dim); margin-bottom:4px; }
.mock-row-value{ display:block; font-family:var(--font-mono); font-size:13.5px; font-weight:600; }
.mock-row-value--green{ color:var(--green); }

/* ---------- features ---------- */
.features{ padding:52px 0 64px; }

.section-title{
  font-size:clamp(24px,3.4vw,32px);
  font-weight:700;
  margin-bottom:10px;
}
.section-sub{
  color:var(--text-muted);
  font-size:15.5px;
  max-width:56ch;
  margin-bottom:36px;
}

.feature-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
@media (max-width:820px){
  .feature-grid{ grid-template-columns:1fr; }
}

.feature-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:26px 24px 28px;
  transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover{
  border-color:var(--border-strong);
  transform:translateY(-4px);
  box-shadow:var(--shadow-card);
}

.feature-icon{
  width:44px; height:44px;
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.feature-icon svg{ width:22px; height:22px; }

.feature-icon--profit{ background:rgba(74,222,128,.12); color:var(--green); }
.feature-icon--breakeven{ background:rgba(59,158,255,.12); color:var(--blue); }
.feature-icon--target{ background:rgba(139,124,246,.14); color:var(--purple); }

.feature-card h3{ font-size:19px; margin-bottom:4px; }
.feature-desc{
  font-family:var(--font-mono);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--text-dim);
  margin-bottom:14px;
}
.feature-text{ color:var(--text-muted); font-size:14.5px; }

/* ---------- how it works ---------- */
.how{
  padding:20px 0 64px;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:var(--bg-alt);
}
.how-grid{
  padding-top:44px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
@media (max-width:820px){
  .how-grid{ grid-template-columns:1fr; gap:22px; }
}
.how-step{
  border-left:2px solid var(--border-strong);
  padding-left:18px;
}
.how-index{
  display:block;
  font-family:var(--font-display);
  font-weight:600;
  font-size:16px;
  margin-bottom:8px;
  color:var(--text);
}
.how-step p{ color:var(--text-muted); font-size:14.5px; }

/* ---------- cta ---------- */
.cta{ padding:64px 0; }
.cta-inner{
  background:linear-gradient(120deg, rgba(59,130,246,.16), rgba(34,211,238,.10));
  border:1px solid rgba(59,158,255,.28);
  border-radius:var(--radius-lg);
  padding:38px 36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
}
.cta-inner h2{ font-size:24px; margin-bottom:6px; }
.cta-inner p{ color:var(--text-muted); font-size:14.5px; }

/* ---------- footer ---------- */
.site-footer{
  padding:32px 0 40px;
  border-top:1px solid var(--border);
}
.footer-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:16px;
  margin-bottom:18px;
}
.brand--footer .brand-name{ font-size:15px; }
.footer-links{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-copy{ color:var(--text-dim); font-size:12.5px; }

/* =========================================================
   Privacy policy — bottom sheet
   ========================================================= */
.policy-overlay{
  position:fixed;
  inset:0;
  z-index:100;
  background:rgba(4,6,12,.6);
  backdrop-filter:blur(3px);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  transition:opacity .28s ease, visibility .28s ease;
}
.policy-overlay.is-open{ opacity:1; visibility:visible; }

.policy-sheet{
  position:relative;
  width:100%;
  max-width:640px;
  max-height:min(82vh,760px);
  background:var(--bg-alt);
  border:1px solid var(--border-strong);
  border-bottom:none;
  border-radius:24px 24px 0 0;
  padding:14px 26px 28px;
  display:flex;
  flex-direction:column;
  box-shadow:0 -20px 60px -20px rgba(0,0,0,.7);
  transform:translateY(100%);
  transition:transform .32s cubic-bezier(.32,.72,0,1);
}
.policy-overlay.is-open .policy-sheet{ transform:translateY(0); }

@media (min-width:720px){
  .policy-overlay{ align-items:center; }
  .policy-sheet{
    border-radius:24px;
    border-bottom:1px solid var(--border-strong);
    transform:translateY(24px) scale(.98);
    opacity:0;
  }
  .policy-overlay.is-open .policy-sheet{ transform:translateY(0) scale(1); opacity:1; }
}

.policy-handle{
  width:40px; height:4px;
  background:var(--border-strong);
  border-radius:999px;
  margin:2px auto 14px;
  flex:none;
}
@media (min-width:720px){ .policy-handle{ display:none; } }

.policy-close{
  position:absolute;
  top:16px; right:16px;
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid var(--border-strong);
  background:var(--surface);
  color:var(--text-muted);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  z-index:2;
  transition:color .15s ease, border-color .15s ease, background .15s ease;
}
.policy-close svg{ width:16px; height:16px; }
.policy-close:hover{ color:var(--red); border-color:var(--red); }
.policy-close:focus-visible{ outline:2px solid var(--cyan); outline-offset:2px; }

.policy-title{
  font-size:20px;
  padding-right:44px;
  margin-bottom:14px;
  flex:none;
}

.policy-body{
  overflow-y:auto;
  padding-right:6px;
  color:var(--text-muted);
  font-size:13.5px;
  line-height:1.65;
}
.policy-body h3{
  color:var(--text);
  font-size:14.5px;
  margin:20px 0 8px;
}
.policy-body h3:first-child{ margin-top:0; }
.policy-body p{ margin-bottom:12px; }
.policy-footnote{ color:var(--text-dim); font-size:12px; margin-top:20px; }

.policy-body::-webkit-scrollbar{ width:6px; }
.policy-body::-webkit-scrollbar-thumb{ background:var(--border-strong); border-radius:999px; }

body.no-scroll{ overflow:hidden; }
